/* 表单样式 */
.el-form {
    .el-form-item__label {
        font-weight: 700;
        color: #fff;
    }

    .el-form-item__content {

        .el-input__wrapper,
        .el-select__wrapper,
        .el-textarea__inner {
            background-color: transparent;
            box-shadow: 0 0 0 1px #00FFFF inset
        }

        .el-input__inner,
        .el-input__inner::placeholder,
        .el-input__icon,
        .el-select__placeholder,
        .el-select__caret,
        .el-radio__label,
        .el-textarea__inner {
            color: #fff;
        }

        .el-radio__input.is-checked .el-radio__inner {
            background: transparent;
            border-color: #00FFFF;
        }

        .el-radio__inner:after {
            background: #00FFFF;
            width: 8px;
            height: 8px;
        }

        .el-radio__input.is-checked+.el-radio__label {
            color: #00FFFF;
        }
    }


}

.el-popover__title {
    color: #fff !important;
}

/* 输入框样式 */
.pure-input.el-input,
.el-input-number .el-input {
    --el-input-text-color: #fff;
    --el-input-border: 1px solid #00FFFF;
    --el-input-hover-border: 1px solid #00FFFF;
    --el-input-border-color: #00FFFF;
    --el-input-focus-border-color: #00FFFF;
    --el-input-bg-color: transparent;
    --el-input-clear-hover-color: #fff;
    --el-input-hover-border-color: #00FFFF;
    --el-input-placeholder-color: #fff;
    --el-input-icon-color: #fff;
}

.el-input__wrapper {
    background-color: transparent !important;
    box-shadow: 0 0 0 1px #00FFFF inset !important;
}

.el-input__inner {
    color: #fff !important;
}

/* 数字输入框样式 */
.el-input-number {



    .el-input-number__decrease,
    .el-input-number__increase {
        background-color: transparent;

    }

    .el-input-number__decrease,
    .el-input-number__increase {
        color: #fff;
    }

    .el-input-number__decrease:hover,
    .el-input-number__increase:hover {
        color: #00FFFF;
    }

    .el-input-number__decrease.is-disabled,
    .el-input-number__increase.is-disabled {
        color: #fff;
    }

    .el-input-number__increase {
        border-left: 1px solid #00FFFF;
    }

    .el-input-number__decrease {
        border-right: 1px solid #00FFFF;
    }
}

/* 下拉框样式 */
.el-select {
    .el-select-dropdown__item {
        color: #fff;
    }

    .el-select-dropdown__item.is-selected {
        color: #fff;
    }

    .el-select-dropdown__item.is-hovering {}

    .el-select__input {
        color: #fff
    }

    .el-select__wrapper.is-hovering:not(.is-fouse) {
        box-shadow: 0 0 0 1px #00F0FF inset
    }

}

/* el-select-dropdown下拉框样式 */
.el-select-dropdown__wrap {
    .el-select-dropdown__item {
        color: #fff;

    }

    .el-select-dropdown__item.is-selected {
        color: #fff;
        background: #1ab4b4;
    }

    .el-select-dropdown__item.is-hovering {
        background-color: rgba(43, 244, 237, 0.1);
    }
}

// 时间下拉
.el-date-editor .el-range-input,
.el-range-separator {
    color: #fff !important;
}

.el-picker-panel {
    color: #fff !important;
    background: transparent !important;
}

.el-time-panel__content:before {
    border-bottom: 1px solid #00FFFF;
    border-top: 1px solid #00FFFF;
}

.el-date-range-picker__time-header {
    border-bottom: 1px solid #00FFFF !important;
}

.el-time-range-picker__body {
    border: 1px solid #00FFFF !important;

}

.el-date-range-picker__header {
    .el-picker-panel__icon-btn {
        color: #fff;
    }
}

.el-picker-panel__content {
    .el-date-table th {
        border-bottom: 1px solid #00FFFF;
        color: #fff;
    }

    .el-date-table td.in-range .el-date-table-cell {
        background-color: rgba(43, 244, 237, 0.1);
    }
}

.el-picker-panel__footer {
    background-color: transparent !important;
    border-top: 1px solid #00FFFF !important;

}

.el-time-spinner__item {
    color: #fff !important;
}

.el-time-panel__footer {
    border-top: 1px solid #00FFFF !important;

    .el-time-panel__btn {
        color: #fff;
    }

    .el-time-panel__btn.confirm {
        color: #00FFFF;
    }
}

.el-picker-panel .el-time-panel {
    background: rgba(4, 28, 37, 0.8) !important;
    border: 1px solid #11FCFE !important;
}

.el-time-panel__content:before {
    border-bottom: 1px solid #00FFFF !important;
    border-top: 1px solid #00FFFF !important;
}

.el-time-spinner__list {
    .el-time-spinner__item:hover:not(.is-disabled):not(.is-active) {
        background: rgba(43, 244, 237, 0.1);
    }
}

/* 月份日期 */
.el-date-picker__header--bordered {
    border-bottom: 1px solid #00FFFF !important;
}

.el-date-picker__header-label,
.el-month-table td .el-date-table-cell__text {
    color: #fff !important;
}

/* 按钮样式 */
.el-button.el-button--primary {
    --el-button-bg-color: #0899A4;
    --el-button-border-color: #0899A4;
    --el-button-hover-bg-color: rgb(82, 184, 191);
    --el-button-hover-border-color: rgb(82, 184, 191);
    --el-button-active-bg-color: rgb(10, 126, 135);
    --el-button-active-border-color: rgb(10, 126, 135);
}

button.el-button {
    --el-button-border-color: #0899A4;
    --el-button-bg-color: #0899A4;
    --el-button-text-color: #fff;
    --el-button-hover-text-color: #fff;
    --el-button-hover-bg-color: rgb(82, 184, 191);
    --el-button-hover-border-color: rgb(82, 184, 191);
    --el-button-active-text-color: #fff;
    --el-button-active-border-color: rgb(10, 126, 135);
    --el-button-active-bg-color: rgb(10, 126, 135);
}

.el-button.is-text:not(.is-disabled):hover {
    background-color: transparent !important;
    color: #409eff !important;
}

/* 多选框样式 */
.el-checkbox {
    .el-checkbox__inner {
        background-color: transparent;
        border: 1px solid #0DF8D4;
    }

    .el-checkbox__input.is-checked .el-checkbox__inner {
        background-color: #10eccb6c;
        border-color: #0DF8D4;
    }

    .el-checkbox__input.is-indeterminate .el-checkbox__inner {
        background-color: #10eccb6c;
        border-color: #0DF8D4;
    }

}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
    font-weight: 400 !important;
}

/* Dropdown下拉菜单样式 */
.el-dropdown-menu {
    padding: 0 !important;
    background-color: transparent !important;

    .el-dropdown-menu__item {
        color: #fff;
    }

    .el-dropdown-menu__item:not(.is-disabled):focus {
        color: #11FCFE;
        background-color: transparent
    }

    .el-dropdown-menu__item:not(.is-disabled):hover {
        color: #11FCFE;
        background-color: transparent;
    }
}

.is-dark {
    z-index: 9999 !important;
}

/* 重置 el-button 中 icon 的 margin */
.reset-margin [class*="el-icon"]+span {
    margin-left: 2px !important;
}

/* 自定义 popover el-popconfirm 的类名 */
.pure-popper,
.el-popper .el-popper__arrow:before,
.el-popper.is-light .el-popper__arrow:before,
.el-popper.is-light {
    background: rgba(4, 28, 37, 0.8) !important;
    border: 1px solid #11FCFE !important;
    color: #fff !important;
    // display: block !important;
}

.el-popconfirm__action {
    .el-button.is-text:not(.is-disabled):hover {
        background-color: rgb(177, 179, 184)
    }

    .el-button.is-text {
        background-color: #909399;
    }
}

/* nprogress 适配 element-plus 的主题色 */
#nprogress {
    & .bar {
        background-color: var(--el-color-primary) !important;
    }

    & .peg {
        box-shadow:
            0 0 10px var(--el-color-primary),
            0 0 5px var(--el-color-primary) !important;
    }

    & .spinner-icon {
        border-top-color: var(--el-color-primary);
        border-left-color: var(--el-color-primary);
    }
}

/* 弹窗样式 */
.pure-dialog,
.el-dialog.pure-dialog {
    background: rgba(4, 28, 37, 0.8);
    /* 半透明背景 */
    border: 1px solid #11fcfe;

    .el-dialog__header,
    .el-dialog__body,
    .el-dialog__title {
        color: #fff;
    }

    .el-dialog__headerbtn .el-dialog__close {
        color: #fff;
    }

    .el-dialog__header.show-close {
        padding-right: 16px;
        color: #fff;
    }

    .el-dialog__headerbtn {
        top: 16px;
        right: 12px;
        width: 24px;
        height: 24px;
    }

    .pure-dialog-svg {
        color: var(--el-color-info);
    }

    .el-dialog__footer {
        padding-top: 0;
    }
}

/* 全局覆盖element-plus的el-tour、el-dialog、el-drawer、el-message-box、el-notification组件右上角关闭图标和el-upload上传文件列表右侧关闭图标的样式，表现更鲜明 */
.el-dialog__headerbtn,
.el-message-box__headerbtn {
    &:hover {
        .el-dialog__close {
            color: var(--el-color-info) !important;
        }
    }
}

.el-icon {

    &.el-tour__close,
    &.el-dialog__close,
    &.el-drawer__close,
    &.el-message-box__close,
    &.el-notification__closeBtn,
    .el-upload-list__item.is-ready &.el-icon--close {
        width: 24px;
        height: 24px;
        border-radius: 4px;
        outline: none;
        transition:
            background-color 0.2s,
            color 0.2s;

        &:hover {
            color: #fff !important;
            text-decoration: none;
            background-color: rgb(0 0 0 / 6%);

            .pure-dialog-svg {
                color: #fff !important;
            }
        }
    }
}

/* 克隆并自定义 ElMessage 样式，不会影响 ElMessage 原本样式，在 src/utils/message.ts 中调用自定义样式 ElMessage 方法即可，整体暗色风格在 src/style/dark.scss 文件进行了适配 */
.pure-message {
    background: #fff !important;
    border-width: 0 !important;
    box-shadow:
        0 3px 6px -4px #0000001f,
        0 6px 16px #00000014,
        0 9px 28px 8px #0000000d !important;

    & .el-message__content {
        color: #000000d9 !important;
        pointer-events: all !important;
        background-image: initial !important;
    }

    & .el-message__closeBtn {
        border-radius: 4px;
        outline: none;
        transition:
            background-color 0.2s,
            color 0.2s;

        &:hover {
            background-color: rgb(0 0 0 / 6%);
        }
    }
}

/* 自定义菜单搜索样式 */
.pure-search-dialog {
    @media screen and (width > 760px) and (width <=940px) {
        .el-input__inner {
            font-size: 12px;
        }
    }

    @media screen and (width <=470px) {
        .el-input__inner {
            font-size: 12px;
        }
    }

    .el-dialog__header {
        display: none;
    }

    .el-input__inner {
        font-size: 1.2em;
    }

    .el-dialog__footer {
        width: calc(100% + 32px);
        padding: 10px 20px;
        margin: auto -16px -16px;
        box-shadow:
            0 -1px 0 0 #e0e3e8,
            0 -3px 6px 0 rgb(69 98 155 / 12%);
    }
}

/* 仿 el-scrollbar 滚动条样式，支持大多数浏览器，如Chrome、Edge、Firefox、Safari等。整体暗色风格在 src/style/dark.scss 文件进行了适配 */
.pure-scrollbar {
    /* Firefox */
    scrollbar-width: thin;
    /* 可选值为 'auto', 'thin', 'none' */
    scrollbar-color: rgb(221 222 224) transparent;

    /* 滑块颜色、轨道颜色 */
    ::-webkit-scrollbar {
        width: 6px;
        /* 滚动条宽度 */
    }

    /* 滚动条轨道 */
    ::-webkit-scrollbar-track {
        background: transparent;
        /* 轨道颜色 */
    }

    /* 滚动条滑块 */
    ::-webkit-scrollbar-thumb {
        background-color: rgb(221 222 224);
        border-radius: 4px;
    }

    /* 滚动条滑块：hover状态 */
    ::-webkit-scrollbar-thumb:hover {
        background: rgb(199 201 203);
        /* 滑块hover颜色 */
    }
}

/* 描述列表样式 */
.el-descriptions.pure-descriptions {
    --el-descriptions-item-bordered-label-background: #001f29;
    --el-descriptions-table-border: 1px solid #11FCFE;

    .el-descriptions__body {
        background-color: transparent;

        .el-descriptions__label.el-descriptions__cell.is-bordered-label {
            color: #fff;
        }

        .el-descriptions__content.el-descriptions__cell.is-bordered-content {
            color: #fff;
        }
    }
}

/* 表格样式 */
.pure-table {
    .el-table {
        --el-table-border-color: transparent; //#0658b8
        --el-table-text-color: #b5cde2;
        --el-table-header-text-color: #8fc2c7;
        --el-table-row-hover-bg-color: rgba(0, 0, 0, 0.15);
        --el-table-current-row-bg-color: var(--el-color-primary-light-9);
        --el-table-header-bg-color: rgba(1, 42, 46, 0.8);
        --el-table-fixed-box-shadow: var(--el-box-shadow-light);
        --el-table-bg-color: transparent;
        --el-table-tr-bg-color: transparent;
        font-size: 12px;
        overflow-y: scroll;
        overflow: -moz-scrollbars-none;
        /* Older Firefox */
        -ms-overflow-style: none;
        /* IE 和 Edge */
        scrollbar-width: none;
        /* Firefox */
        overflow-y: scroll;
    }

    .el-table__header {
        // background: url("@/assets/monitoring/表单头.png") no-repeat;
        // background-size: 100% 50%;
    }

    .el-table th.el-table__cell {
        // background-color: transparent !important;
    }

    .el-table__body .el-table__row:nth-child(even) {
        background-color: rgba(1, 42, 46, 0.8);
        /* 定义偶数行的背景颜色 */
    }

    .el-table-fixed-column--right.is-first-column.el-table__cell {
        background-color: rgba(1, 42, 46, 0.8);
    }

    .el-table__body tr.current-row>td.el-table__cell {
        background-color: rgba(225, 220, 40, 0.15)
    }
}

/* 分页器样式 */
.pure-table .el-pagination {
    .el-pager li {
        background: none;
        color: #fff;
    }

    .el-pager li.is-active {
        color: #fff;
        background: rgba(0, 240, 255, 0.18);
        border-radius: 50%;
        border: 1px solid #00F0FF;
    }

    .el-pagination__jump,
    .el-pagination__total {
        color: #fff;
    }

    .el-input__wrapper {
        background-color: rgba(0, 240, 255, 0.18);
        box-shadow: 0 0 0 1px #00F0FF inset
    }

    .el-input__inner {
        color: #fff;
    }
}

/* 树组件样式 */
.el-tree {
    height: calc(100% - 48px);
    --el-tree-text-color: #ffffff !important;
    background: rgba(4, 28, 37, 0.7) !important;
    --el-tree-node-hover-bg-color: #0E5E77 !important;
    --el-tree-node-content-height: 46px !important;

    .el-tree-node {
        // height: var(--el-tree-node-content-height) !important;
    }

    .el-tree-node:hover {
        color: #fff;
    }

    .el-tree-node__content {
        display: flex;
        align-items: center;
        // height: var(--el-tree-node-content-height) !important;
    }

    .el-vl__wrapper {
        height: 100%;
    }

    // .el-vl__window.el-tree-virtual-list {
    //     height: 100% !important;
    // }
}

/* text文本 */
.el-text {
    --el-text-color: #ffffff;
}

/* tag标签 */
.pure-tag.el-tag--dark,
.pure-tag.el-tag--dark.el-tag--primary {
    --el-tag-bg-color: transparent;
    --el-tag-border-color: transparent;
    --el-tag-hover-color: transparent;
}

/* 标签页样式 */
.pure-tabs.el-tabs--border-card {
    background: transparent;
    border: 1px solid transparent;

    .el-tabs__header {
        background-color: transparent;
        border-bottom: 1px solid #11FCFE;

        .el-tabs__item.is-active {
            background-color: #0E5E77;
            border-left-color: #11FCFE;
            border-right-color: #11FCFE;
            color: #11FCFE;
        }

        .el-tabs__item {
            color: #fff;
        }
    }
}

/* 卡片样式 */
.el-card.pure-card {
    --el-card-border-color: #11FCFE;
    --el-card-bg-color: transparent;
    background-color: var(--el-card-bg-color);
    border: 1px solid var(--el-card-border-color);
    border-radius: var(--el-card-border-radius);
    color: #fff;
}

.el-card.pure-card.is-hover-shadow {
    box-shadow: 0 0 0 1px #00FFFF inset
}

/* 菜单栏样式 */
.pure-menu.el-menu {
    border-right: 1px solid transparent;
}

/* 时间线样式 */
.el-timeline {
    .el-timeline-item__content {
        color: #fff;
    }

    .el-timeline-item__timestamp {
        color: #fff;
    }
}
.el-loading-mask {
    --el-mask-color: rgba(47, 112, 117, 0.6);
    backdrop-filter: blur(5px);
}